package org.apache.jsp.mypage;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class MyPage_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=euc-kr");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, false, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	HttpSession session = request.getSession(false);
	if(session != null && session.getAttribute("loginYn")!=null && ((String)session.getAttribute("loginYn")).equals("Y"))
	{

      out.write("\r\n");
      out.write("<SCRIPT language=\"JavaScript\">\r\n");
      out.write("\t//주문 내역보기\r\n");
      out.write("\tfunction order()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.pageForm;\r\n");
      out.write("\t\tf.func.value=\"page_002\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\t//비밀번호 변경\r\n");
      out.write("\tfunction pwChang()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.pageForm;\r\n");
      out.write("\t\tf.func.value=\"page_005\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\t//적립금 팝업\r\n");
      out.write("\tfunction pointAction()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.pageForm;\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tvar pointActionWindow = window.open(\"/common/Progress.jsp\", \"pointCheck\", \"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=400, height=200\");\r\n");
      out.write("\r\n");
      out.write("\t\tf.func.value = \"page_008\";\r\n");
      out.write("\t\tf.target = \"pointCheck\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\t//리뷰보기\r\n");
      out.write("\tfunction reviewAction()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tdocument.location.href=\"/servlet/service.BbsServlet?func=bbs_001&code=BBS_20110413052035&from=mypage\";\r\n");
      out.write("\t}\r\n");
      out.write("\t//공구 경매보기\r\n");
      out.write("\tfunction autionAction()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.pageForm;\r\n");
      out.write("\t\tf.func.value=\"page_010\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\t//공구 경매보기\r\n");
      out.write("\tfunction wishlistAction()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.pageForm;\r\n");
      out.write("\t\tf.func.value=\"page_011\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\t//회원정보변경가기\r\n");
      out.write("\tfunction updateAction()\r\n");
      out.write("\t{\r\n");
      out.write("\t\twindow.location.href = \"/servlet/service.MemberServlet?func=member_011&from=mypage\";\r\n");
      out.write("\t}\t\r\n");
      out.write("\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("\r\n");
      out.write("<CENTER>\r\n");
      out.write("<table>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td width=\"632\">\r\n");
      out.write("\t\t\t<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
      out.write("\t\t\t<FORM name=\"pageForm\" action=\"/servlet/service.MyPageServlet\" method=\"post\">\r\n");
      out.write("\t\t\t<INPUT type=\"hidden\" name=\"func\" value=\"page_002\">\r\n");
      out.write("\t\t\t    <tr> \r\n");
      out.write("\t\t\t      <td colspan=\"2\"><img src=\"/images/mypage/mypage1.jpg\" width=\"632\" height=\"44\"></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t    <tr> \r\n");
      out.write("\t\t\t      <td height=\"30\" colspan=\"2\"></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_ju.jpg\" onclick=\"order()\" style=\"cursor:hand\" align=\"absmiddle\"></td>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_ju_1.jpg\"></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t    \t<td colspan=\"3\" width=\"628\"><HR></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_au.jpg\" onclick=\"autionAction()\" style=\"cursor:hand\" align=\"absmiddle\"></td>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_au_1.jpg\"></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t    \t<td colspan=\"3\" width=\"628\"><HR></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_cat.jpg\" onclick=\"pointAction()\" style=\"cursor:hand\" align=\"absmiddle\"></td>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_cat_1.jpg\"></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t    \t<td colspan=\"3\" width=\"628\"><HR></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_re.jpg\" onclick=\"reviewAction()\" style=\"cursor:hand\" align=\"absmiddle\"></td>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_re_1.jpg\"></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t    \t<td colspan=\"3\" width=\"628\"><HR></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_info.jpg\" onclick=\"updateAction()\" style=\"cursor:hand\" align=\"absmiddle\"></td>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_info_1.jpg\"></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t    \t<td colspan=\"3\" width=\"628\"><HR></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_pw.jpg\" onclick=\"pwChang()\" style=\"cursor:hand\" align=\"absmiddle\"></td>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_pw_1.jpg\"></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t    \t<td colspan=\"3\" width=\"628\"><HR></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_wish.jpg\" onclick=\"wishlistAction()\" style=\"cursor:hand\" align=\"absmiddle\"></td>\r\n");
      out.write("\t\t\t      <td><img src=\"/images/mypage/but_wish_1.jpg\"></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr>\r\n");
      out.write("\t\t\t    \t<td colspan=\"3\" width=\"628\"><HR></td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    <tr> \r\n");
      out.write("\t\t\t      <td colspan=\"2\">&nbsp;</td>\r\n");
      out.write("\t\t\t    </tr>\r\n");
      out.write("\t\t\t    </FORM>\r\n");
      out.write("\t\t\t  </table>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</CENTER>\r\n");

	}
	else
	{

      out.write("\r\n");
      out.write("<SCRIPT language=\"JavaScript\">\r\n");
      out.write("\tfunction loginAction()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.myloginForm;\r\n");
      out.write("\t\tif(f.id.value == \"\")\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\twindow.alert(\"ID를 반드시 입력해야 합니다.\");\r\n");
      out.write("\t\t\tf.id.focus();\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(f.id.value.length < 4 || f.id.value.length > 20)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\twindow.alert(\"ID는 4자 이상 20자 이하 입니다.\");\r\n");
      out.write("\t\t\tf.id.select();\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\r\n");
      out.write("\t\tif(f.pw.value == \"\")\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\twindow.alert(\"비밀번호를 반드시 입력해야 합니다.\");\r\n");
      out.write("\t\t\tf.pw.focus();\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif(f.pw.value.length < 4 || f.pw.value.length > 20)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\twindow.alert(\"비밀번호를 4자 이상 20자 이하 입니다.\");\r\n");
      out.write("\t\t\tf.pw.select();\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tf.func.value=\"member_001\";\r\n");
      out.write("\t\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction ruleAction()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.myloginForm;\r\n");
      out.write("\t\tf.func.value=\"member_003\";\r\n");
      out.write("\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction searchAction()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar f = document.myloginForm;\r\n");
      out.write("\t\tf.func.value=\"member_015\";\r\n");
      out.write("\t\tf.submit();\r\n");
      out.write("\t}\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("<CENTER>\r\n");
      out.write("\t<td width=\"632\"> \r\n");
      out.write("\t\t<table width=\"632\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\t\r\n");
      out.write("\t\t  \r\n");
      out.write("\t\t  <tr> \r\n");
      out.write("\t\t    <td><img src=\"/images/Login/login.jpg\" width=\"632\" height=\"44\"></td>\r\n");
      out.write("\t\t  </tr>\r\n");
      out.write("\t\t  \r\n");
      out.write("\t\t  <tr> \r\n");
      out.write("\t\t    <td height=\"30\"></td>\r\n");
      out.write("\t\t  </tr>\r\n");
      out.write("\t\t  <tr> \r\n");
      out.write("            <td> \r\n");
      out.write("              <table width=\"532\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
      out.write("              \t<FORM name=\"myloginForm\" action=\"/servlet/service.MemberServlet\" method=\"post\">\r\n");
      out.write("\t\t\t\t<INPUT type=\"hidden\" name=\"func\" value=\"member_001\">\r\n");
      out.write("\t\t\t\t<INPUT type=\"hidden\" name=\"from\" value=\"mypage\">\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td colspan=\"3\"><img src=\"/images/Login/loginform.jpg\" width=\"532\" height=\"100\"></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <TR>\r\n");
      out.write("                \t<TD colspan=\"3\">\r\n");
      out.write("                \t\t&nbsp;\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                </TR>\r\n");
      out.write("                <TR>\r\n");
      out.write("                \t<TD align=\"right\" width=\"232\">\r\n");
      out.write("                \t\t<B>아이디 :&nbsp;&nbsp;&nbsp;</B>\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                \t<TD width=\"150\">\r\n");
      out.write("                \t\t<INPUT type=\"text\" name=\"id\" maxlength=\"20\" tabindex=\"1\" style=\"heigth: 21px; width:120px; BORDER-RIGHT: #DADADA 1px solid;  BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid;  BORDER-BOTTOM: #DADADA 1px solid; BACKGROUND-COLOR: #FFFFFF;\" onkeydown=\"if(event.keyCode == 13){document.loginForm.pw.focus();}\">\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                \t<TD width=\"150\" rowspan=\"2\">\r\n");
      out.write("\t\t\t\t\t\t<IMG src=\"/images/Login/login_button.jpg\" border=\"0\" style=\"cursor:hand\" onClick=\"loginAction();\" width=\"50\" height=\"40\">\r\n");
      out.write("\t\t\t\t\t</TD>\r\n");
      out.write("                </TR>\r\n");
      out.write("                <TR>\r\n");
      out.write("                \t<TD align=\"right\">\r\n");
      out.write("                \t\t<B>비밀번호 :&nbsp;&nbsp;&nbsp;</B>\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                \t<TD>\r\n");
      out.write("                \t\t<INPUT type=\"password\" name=\"pw\" maxlength=\"20\" tabindex=\"2\" style=\"heigth: 21px; width:120px; BORDER-RIGHT: #DADADA 1px solid;  BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid;  BORDER-BOTTOM: #DADADA 1px solid; BACKGROUND-COLOR: #FFFFFF;\" onkeydown=\"if(event.keyCode == 13){loginAction();}\">\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                \t<TD>\r\n");
      out.write("                \t\t&nbsp;\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                </TR>\r\n");
      out.write("                <TR>\r\n");
      out.write("                \t<TD colspan=\"3\">\r\n");
      out.write("                \t\t&nbsp;\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                </TR>\r\n");
      out.write("                <TR>\r\n");
      out.write("                \t<TD align=\"center\">\r\n");
      out.write("                \t\t<img src=\"/images/Login/join.jpg\" width=\"150\">\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                \t<TD>\r\n");
      out.write("                \t\t&nbsp;\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                \t<TD>\r\n");
      out.write("\t\t\t\t\t\t<img src=\"/images/Login/search.jpg\" width=\"200\">\r\n");
      out.write("\t\t\t\t\t</TD>\r\n");
      out.write("                </TR>\r\n");
      out.write("                <TR>\r\n");
      out.write("                \t<TD align=\"center\">\r\n");
      out.write("                \t\t&nbsp;&nbsp;<IMG src=\"/images/member/btn_idpw.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"searchAction();\">\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                \t<TD>\r\n");
      out.write("                \t\t&nbsp;\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                \t<TD>\r\n");
      out.write("\t\t\t\t\t\t&nbsp;&nbsp;<IMG src=\"/images/member/btn_member.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"ruleAction();\">\r\n");
      out.write("\t\t\t\t\t</TD>\r\n");
      out.write("                </TR>\r\n");
      out.write("                <TR>\r\n");
      out.write("                \t<TD colspan=\"3\">\r\n");
      out.write("                \t\t<HR>\r\n");
      out.write("                \t</TD>\r\n");
      out.write("                <TR>\r\n");
      out.write("                </FORM>                   \r\n");
      out.write("              </table>\r\n");
      out.write("             </td>\r\n");
      out.write("           </tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t</td>\r\n");
      out.write("</CENTER>\r\n");
      out.write("\r\n");

	}

      out.write('\r');
      out.write('\n');
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
